package cn.wolfcode.service;


import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IRoleService {
    List list();

    Role get(Long id);

    void update(Role role);

    void insert(Role role);

    PageInfo<Role> queryList(QueryObject qo);

    void delete(Long id);

    void insertAll(@Param("rId") Long rId, @Param("pId") Long pId);

    List selectPerAndRoel(Long id);

    void delteAll(Long rId);
}
